package com.zhike.common.repository;

import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import lombok.Data;

/**
 * 消息回执(记录未读的消息)
 */
@Document(collection = "ack_message")
@Data
public class ACKMessage {
    @Id
    private String id;

    // 消息ID
    private String messageId;

    /** 会话ID */
    private String sessionId;

    /** 群ID */
    private String groupId;

    // 发送方
    private String fromUid;

    // 接收方
    private String toUid;

    // 指纹码
    private String fp;

    // 回执状态 0:未回执 1:已回执
    private Integer ifAck;

}
